package org.gg.boom.modules.schedule.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.gg.boom.modules.schedule.model.dto.ScheduleJobDTO;
import org.gg.boom.modules.schedule.model.entity.ScheduleJobEntity;

import java.util.Map;

/**
 * 定时任务
 */
public interface ScheduleMapper extends BaseMapper<ScheduleJobEntity> {

    /**
     * 批量更新状态
     */
    int updateBatch(Map<String, Object> map);

    Page<ScheduleJobDTO> page(Page<Object> objectPage, @Param("param") Map<String, Object> params);
}
